<template>
  <div>
    <p>DDD</p>
    <button @click="handleClick">按钮</button>
  </div>
</template>

<script>
export default {
  name: "DComp",
  methods: {
    handleClick() {
      this.$emit("say", "DDDD", "EEEE");
      // this.$emit("say", { d: 'DDDD', e: 'EEEE' }); // 通过程序设计来完成
    },
  },
};
</script>

<style></style>
